package com.example.librarymanagement.dto.book;

import com.example.librarymanagement.entity.Book;
import com.example.librarymanagement.util.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * @author zjia
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
public class BookUpdDto extends BaseDto<Book> {

    @ApiModelProperty(value = "ID", required = true)
    @NotNull
    private Integer id;

    @ApiModelProperty(value = "国际标准书号")
    private String isbn;

    @ApiModelProperty(value = "索书名")
    private String callNumber;

    @ApiModelProperty(value = "中文名")
    private String cName;

    @ApiModelProperty(value = "原名")
    private String name;

    @ApiModelProperty(value = "作者")
    private String author;

    @ApiModelProperty(value = "译者")
    private String translator;

    @ApiModelProperty(value = "类别_id")
    private Integer typeId;

    @ApiModelProperty(value = "语种")
    private String languages;

    @ApiModelProperty(value = "出版社")
    private String press;

    @ApiModelProperty(value = "当前数量")
    private Integer count;

    @ApiModelProperty(value = "总数量")
    private Integer total;

    @ApiModelProperty(value = "破损数量")
    private Integer brokenCount;
}
